import request from '@/utils/request'

export function getOrderByOrderSn(params) {
  return request({
    url: '/oms/order',
    method: 'get',
    params
  })
}
export function getOrderPage(params) {
  return request({
    url: '/oms/order/page',
    method: 'get',
    params
  })
}

export function createOrder(data) {
  return request({
    url: '/oms/order/create',
    method: 'post',
    data
  })
}
export function updateOrder(data) {
  return request({
    url: '/oms/order/update',
    method: 'post',
    data
  })
}